// import {
//   GET,
//   POST,
//   DELETE,
//   // PATCH, 
//   PUT
// } from '@/utils/request.js'
// import { ALL } from './baseURL.js'
import { ALL } from './baseUrl'
import request from '@/utils/request'

/**
 * 
 * @param {*}  三轴应力
 * @returns 
 */

//  三轴基础信息列表
// export const GetRelationThreeAxis = params => GET('/all/api/services/app/RelationThreeAxisDeviceInfoService/GetAll' params).then(res => res.data)
export function GetRelationThreeAxis(params) {
  return request({
    url: '/all/api/services/app/RelationThreeAxisDeviceInfoService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加三轴测点
// export const CreateRelationThreeAxis = params => POST('/all/api/services/app/RelationThreeAxisDeviceInfoService/Create' params).then(res => res.data)
export function CreateRelationThreeAxis(params) {
  return request({
    url: '/all/api/services/app/RelationThreeAxisDeviceInfoService/Create',
    method: 'post',
    params: params
  })
}
// 修改三轴测点信息
// export const UpdateRelationThreeAxis = params => PUT('/all/api/services/app/RelationThreeAxisDeviceInfoService/Update' params).then(res => res.data)
export function UpdateRelationThreeAxis(params) {
  return request({
    url: '/all/api/services/app/RelationThreeAxisDeviceInfoService/Update',
    method: 'put',
    params: params
  })
}
// 删除三轴测点信息
// export const DeleteRelationThreeAxis = params => DELETE('/all/api/services/app/RelationThreeAxisDeviceInfoService/Delete' params).then(res => res.data)
export function DeleteRelationThreeAxis(params) {
  return request({
    url: '/all/api/services/app/RelationThreeAxisDeviceInfoService/Delete',
    method: 'delete',
    params: params
  })
}

// 三轴应力报警策略
// export const GetThreeAxisWarring = params => GET('/all/api/services/app/ThreeAxisWarringSettingService/GetAll' params).then(res => res.data)
export function GetThreeAxisWarring(params) {
  return request({
    url: '/all/api/services/app/ThreeAxisWarringSettingService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加报警策略
// export const CreateThreeAxisWarring = params => POST('/all/api/services/app/ThreeAxisWarringSettingService/Create' params).then(res => res.data)
export function CreateThreeAxisWarring(params) {
  return request({
    url: '/all/api/services/app/ThreeAxisWarringSettingService/Create',
    method: 'post',
    params: params
  })
}

// export const UpdateThreeAxisWarring = params => PUT('/all/api/services/app/ThreeAxisWarringSettingService/Update' params).then(res => res.data)
export function UpdateThreeAxisWarring(params) {
  return request({
    url: '/all/api/services/app/ThreeAxisWarringSettingService/Update',
    method: 'put',
    params: params
  })
}

// export const DeleteDeviceWarningSettin = params => DELETE('/all/api/services/app/ThreeAxisWarringSettingService/Delete' params).then(res => res.data)
export function DeleteDeviceWarningSettin(params) {
  return request({
    url: '/all/api/services/app/ThreeAxisWarringSettingService/Delete',
    method: 'delete',
    params: params
  })
}

/**
 * 堆取料机设备类型
 */

// export const GetDeviceType = params => GET('/all/api/services/app/DeviceTypeService/GetAll' params).then(res => res.data)
export function GetDeviceType(params) {
  return request({
    url: '/all/api/services/app/DeviceTypeService/GetAll',
    method: 'get',
    params: params
  })
}

/**
 * 
 * @param {*} 传感器历史记录折线图 
 * @returns 
 */
// 
// export const GetLineChartHyperTemperShock = params => GET('/all/api/services/app/HyperTemperShockService/GetLineChartTimeScale' params).then(res => res.data)
export function GetLineChartHyperTemperShock(params) {
  return request({
    url: '/all/api/services/app/HyperTemperShockService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}

// 皮带电机  /api/services/app/HyperBeltMotorService/GetLineChartTimeScale
// export const GetHyperBeltMotorChart = params => GET('/all/api/services/app/HyperBeltMotorService/GetLineChartTimeScale' params).then(res => res.data)
export function GetHyperBeltMotorChart(params) {
  return request({
    url: '/all/api/services/app/HyperBeltMotorService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 皮带电机转速
// export const GetHyperBeltRotationChart = params => GET('/all/api/services/app/HyperBeltRotationService/GetLineChartTimeScale' params).then(res => res.data)
export function GetHyperBeltRotationChart(params) {
  return request({
    url: '/all/api/services/app/HyperBeltRotationService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 皮带减速机 
// export const GetHyperBeltReducerChart = params => GET('/all/api/services/app/HyperBeltReducerService/GetLineChartTimeScale' params).then(res => res.data)
export function GetHyperBeltReducerChart(params) {
  return request({
    url: '/all/api/services/app/HyperBeltReducerService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 皮带滚轮
// export const GetHyperBeltRollerChart = params => GET('/all/api/services/app/HyperBeltRollerService/GetLineChartTimeScale' params).then(res => res.data)
export function GetHyperBeltRollerChart(params) {
  return request({
    url: '/all/api/services/app/HyperBeltRollerService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}

// 斗轮电机列表 
// export const GetHyperBucketWheelMotorChart = params => GET('/all/api/services/app/HyperBucketWheelMotorService/GetLineChartTimeScale' params).then(res => res.data)
export function GetHyperBucketWheelMotorChart(params) {
  return request({
    url: '/all/api/services/app/HyperBucketWheelMotorService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 斗轮减速机
// export const GetHyperBucketWheelChart = params => GET('/all/api/services/app/HyperBucketWheelReducerService/GetLineChartTimeScale' params).then(res => res.data)
export function GetHyperBucketWheelChart(params) {
  return request({
    url: '/all/api/services/app/HyperBucketWheelReducerService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 俯仰电机
// export const GerHyperPitchMotorChart = params => GET('/all/api/services/app/HyperPitchMotorService/GetLineChartTimeScale' params).then(res => res.data)
export function GerHyperPitchMotorChart(params) {
  return request({
    url: '/all/api/services/app/HyperPitchMotorService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 回转电机 
// export const GerHyperRotateMotorChart = params => GET('/all/api/services/app/HyperRotateMotorService/GetLineChartTimeScale' params).then(res => res.data)
export function GerHyperRotateMotorChart(params) {
  return request({
    url: '/all/api/services/app/HyperRotateMotorService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 回转减速箱
// export const GerHyperRotateReducerChart = params => GET('/all/api/services/app/HyperRotateReducerService/GetLineChartTimeScale' params).then(res => res.data)
export function GerHyperRotateReducerChart(params) {
  return request({
    url: '/all/api/services/app/HyperRotateReducerService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 风压
// export const GerHyperWindPressureChart = params => GET('/all/api/services/app/HyperWindPressureService/GetLineChartTimeScale' params).then(res => res.data)
export function GerHyperWindPressureChart(params) {
  return request({
    url: '/all/api/services/app/HyperWindPressureService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}

//  结构应力
// export const GerHyperStrainGaugeChart = params => GET('/all/api/services/app/HyperStrainGaugeService/GetLineChartTimeScale' params).then(res => res.data)
export function GerHyperStrainGaugeChart(params) {
  return request({
    url: '/all/api/services/app/HyperStrainGaugeService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 三轴应力图表
// export const GerHyperThreeAxisChart = params => GET('/all/api/services/app/HyperThreeAxisService/GetLineChartTimeScale' params).then(res => res.data)
export function GerHyperThreeAxisChart(params) {
  return request({
    url: '/all/api/services/app/HyperThreeAxisService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}

// 倾角仪历史记录
// export const GetLineChartTimeScale = params => GET('/all/api/services/app/HyperMemsService/GetLineChartTimeScale' params).then(res => res.data)
export function GetLineChartTimeScale(params) {
  return request({
    url: '/all/api/services/app/HyperMemsService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 倾角仪
// export const GetLatestMems = params => GET('/all/api/services/app/LatestMemsServiceImpl/FetchLatestAll' params).then(res => res.data)
export function GetLatestMems(params) {
  return request({
    url: '/all/api/services/app/LatestMemsServiceImpl/FetchLatestAll',
    method: 'get',
    params: params
  })
}
// 倾角仪
// export const GetLatestMemsByBwmCode = params => GET('/all/api/services/app/LatestMemsServiceImpl/FetchLatestByBwmCode' params).then(res => res.data)
export function GetLatestMemsByBwmCode(params) {
  return request({
    url: '/all/api/services/app/LatestMemsServiceImpl/FetchLatestByBwmCode',
    method: 'get',
    params: params
  })
}

// 导出历史数据表格
// export const GetExportLineChartTimeScale = params => GET('/all/api/services/app/HyperTemperShockService/ExportLineChartTimeScale' params).then(res => res.data)
export function GetExportLineChartTimeScale(params) {
  return request({
    url: '/all/api/services/app/HyperTemperShockService/ExportLineChartTimeScale',
    method: 'get',
    params: params
  })
}

// 设备管理按钮切换测点
// export const GetFetchLatestValueByDeviceType = params => GET('/all/api/services/app/LatestDPMotorServiceImpl/FetchLatestValueByDeviceType' params).then(res => res.data)
export function GetFetchLatestValueByDeviceType(params) {
  return request({
    url: '/all/api/services/app/HyperTemperShockService/ExportLineChartTimeScale',
    method: 'get',
    params: params
  })
}

// CMSS报警
// export const GetCMSStatusData = params => GET('/all/api/services/app/CMSStatusDataService/GetAll ' params).then(res => res.data)
export function GetCMSStatusData(params) {
  return request({
    url: '/all/api/services/app/CMSStatusDataService/GetAll',
    method: 'get',
    params: params
  })
}
// CMSS报警
// export const GetLatestCMSClazz = params => GET('/all/api/services/app/LatestCMSClazzService/FetchLatestValue' params).then(res => res.data)
export function GetLatestCMSClazz(params) {
  return request({
    url: '/all/api/services/app/LatestCMSClazzService/FetchLatestValue',
    method: 'get',
    params: params
  })
}
// CMS历史记录
// export const GetHyperCMSClazz = params => GET('/all/api/services/app/HyperCMSClazzService/GetLineChartTimeScale' params).then(res => res.data)
export function GetHyperCMSClazz(params) {
  return request({
    url: '/all/api/services/app/HyperCMSClazzService/GetLineChartTimeScale',
    method: 'get',
    params: params
  })
}
// 导出振动报告
// export const Generation = params => GET('/all/api/services/app/LatestDPMotorServiceImpl/DPMotorAnalysisGeneration' params).then(res => res.data)
export function Generation(params) {
  return request({
    url: '/all/api/services/app/LatestDPMotorServiceImpl/DPMotorAnalysisGeneration',
    method: 'get',
    params: params
  })
}

/**
 * 
 * @param {*} 实时列表 
 * @returns 
 */
// 获取设备实时列表
// export const GetLatestDPMotorServiceImpl = params => GET('/all/api/services/app/LatestDPMotorServiceImpl/FetchLatestValueByDevice' params).then(res => res.data)
export function GetLatestDPMotorServiceImpl(params) {
  return request({
    url: '/all/api/services/app/LatestDPMotorServiceImpl/FetchLatestValueByDevice',
    method: 'get',
    params: params
  })
}

// 回转电机、回转减速箱、皮带机滚筒 实时列表接口
// export const FetchLatestValueByDeviceType = params => GET('/all/api/services/app/LatestDPMotorServiceImpl/FetchLatestValueByDeviceType' params).then(res => res.data)
export function FetchLatestValueByDeviceType(params) {
  return request({
    url: '/all/api/services/app/LatestDPMotorServiceImpl/FetchLatestValueByDevice',
    method: 'get',
    params: params
  })
}

// 风速
// export const GerHyperWindVelcityAll = params => GET('/all/api/services/app/LatestCMSClazzService/FetchLatestValue' params).then(res => res.data)
export function GerHyperWindVelcityAll(params) {
  return request({
    url: '/all/api/services/app/LatestCMSClazzService/FetchLatestValue',
    method: 'get',
    params: params
  })
}
// 三轴应力、配重尾、配重顶
// export const GerHyperThreeAxis = params => GET('/all/api/services/app/HyperThreeAxisService/GetAll' params).then(res => res.data)
export function GerHyperThreeAxis(params) {
  return request({
    url: '/all/api/services/app/HyperThreeAxisService/GetAll',
    method: 'get',
    params: params
  })
}
// 三轴应力
// export const FetchLatestAll = params => GET('/all/api/services/app/LatestThreeAxisValueServiceImpl/FetchLatestAll' params).then(res => res.data)
export function FetchLatestAll(params) {
  return request({
    url: '/all/api/services/app/LatestThreeAxisValueServiceImpl/FetchLatestAll',
    method: 'get',
    params: params
  })
}
// 结构应力
// export const GerHyperStrainGauge = params => GET('/all/api/services/app/HyperStrainGaugeService/GetAll' params).then(res => res.data)
export function GerHyperStrainGauge(params) {
  return request({
    url: '/all/api/services/app/HyperStrainGaugeService/GetAll',
    method: 'get',
    params: params
  })
}
// 结构体传感器列表
// export const GetStructureSensorAll = params => GET('/all/api/services/app/StructureSensorService/GetAll' params).then(res => res.data)
export function GetStructureSensorAll(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/GetAll',
    method: 'get',
    params: params
  })
}
// 创建结构传感器
// export const AddCreate = params => POST('/all/api/services/app/StructureSensorService/Create' params).then(res => res.data)
export function AddCreate(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/Create',
    method: 'post',
    params: params
  })
}
// 修改结构传感器
// export const UpdateCreate = params => PUT('/all/api/services/app/StructureSensorService/Update' params).then(res => res.data)
export function UpdateCreate(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/Update',
    method: 'put',
    params: params
  })
}
// 根据id删除修改结构传感器
// export const DeleteCreate = params => DELETE('/all/api/services/app/StructureSensorService/Delete' params).then(res => res.data)
export function DeleteCreate(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/Delete',
    method: 'delete',
    params: params
  })
}
// 设备信息列表
// export const GetRelation = params => GET('/all/api/services/app/RelationDeviceInfoService/GetAll' params).then(res => res.data)
export function GetRelation(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceInfoService/GetAll',
    method: 'get',
    params: params
  })
}

// 创建设备信息
// export const AddRelation = params => POST('/all/api/services/app/RelationDeviceInfoService/Create' params).then(res => res.data)
export function AddRelation(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceInfoService/Create',
    method: 'post',
    params: params
  })
}
// 指定设备添加测点信息
// export const AddDeviceMeasurePoint = params => POST('/all/api/services/app/RelationDeviceInfoService/AddDeviceMeasurePoint' params).then(res => res.data)
export function AddDeviceMeasurePoint(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceInfoService/AddDeviceMeasurePoint',
    method: 'post',
    params: params
  })
}
// 修改结设备信息
// export const UpdateRelation = params => PUT('/all/api/services/app/RelationDeviceInfoService/Update' params).then(res => res.data)
export function UpdateRelation(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceInfoService/Update',
    method: 'put',
    params: params
  })
}
// 根据id删除设备信息
// export const DeleteRelation = params => DELETE('/all/api/services/app/RelationDeviceInfoService/Delete' params).then(res => res.data)
export function DeleteRelation(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceInfoService/Delete',
    method: 'delete',
    params: params
  })
}
// 根据测点code删除测点信息
// export const DeleteDeviceMeasurePoint = params => POST('/all/api/services/app/RelationDeviceInfoService/DeleteDeviceMeasurePoint' params).then(res => res.data)
export function DeleteDeviceMeasurePoint(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceInfoService/DeleteDeviceMeasurePoint',
    method: 'post',
    params: params
  })
}

// 获取堆取料机风速仪
// export const GetRelationWindVelocity = params => GET('/all/api/services/app/RelationWindVelocityService/GetAll' params).then(res => res.data)
export function GetRelationWindVelocity(params) {
  return request({
    url: '/all/api/services/app/RelationWindVelocityService/GetAll',
    method: 'get',
    params: params
  })
}
// 创建风速仪信息
// export const AddWindVelocity = params => POST('/all/api/services/app/RelationWindVelocityService/Create' params).then(res => res.data)
export function AddWindVelocity(params) {
  return request({
    url: '/all/api/services/app/RelationWindVelocityService/Create',
    method: 'post',
    params: params
  })
}
// 修改风速仪
// export const UpdateWindVelocity = params => PUT('/all/api/services/app/RelationWindVelocityService/Update' params).then(res => res.data)
export function UpdateWindVelocity(params) {
  return request({
    url: '/all/api/services/app/RelationWindVelocityService/Update',
    method: 'puts',
    params: params
  })
}

// 根据id删除风速仪信息
// export const DeleteWindVelocity = params => DELETE('/all/api/services/app/RelationWindVelocityService/Delete' params).then(res => res.data)
export function DeleteWindVelocity(params) {
  return request({
    url: '/all/api/services/app/RelationWindVelocityService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取倾角仪
// export const GetAllMemsByBWMCode = params => GET('/all/api/services/app/RelationMemsServiceImplL/GetAllMemsByBWMCode' params).then(res => res.data)
export function GetAllMemsByBWMCode(params) {
  return request({
    url: '/all/api/services/app/RelationMemsServiceImplL/GetAllMemsByBWMCode',
    method: 'get',
    params: params
  })
}

// 创建倾角仪信息
// export const AddMems = params => POST('/all/api/services/app/RelationMemsServiceImplL/Create' params).then(res => res.data)
export function AddMems(params) {
  return request({
    url: '/all/api/services/app/RelationMemsServiceImplL/Create',
    method: 'post',
    params: params
  })
}
// 修改倾角仪
// export const UpdateMems = params => PUT('/all/api/services/app/RelationMemsServiceImplL/Update' params).then(res => res.data)
export function UpdateMems(params) {
  return request({
    url: '/all/api/services/app/RelationMemsServiceImplL/Update',
    method: 'put',
    params: params
  })
}

// 根据id删除倾角仪信息
// export const DeleteMems = params => DELETE('/all/api/services/app/RelationMemsServiceImplL/Delete' params).then(res => res.data)
export function DeleteMems(params) {
  return request({
    url: '/all/api/services/app/RelationMemsServiceImplL/Delete',
    method: 'delete',
    params: params
  })
}

// 设备回转报警设置
// export const GetDeviceRotateWarning = params => GET('/all/api/services/app/DeviceRotateWarningSettingService/GetAll' params).then(res => res.data)
export function GetDeviceRotateWarning(params) {
  return request({
    url: '/all/api/services/app/DeviceRotateWarningSettingService/GetAll',
    method: 'get',
    params: params
  })
}
// 设备震动报警设置
// export const GetDeviceShockWarning = params => GET('/all/api/services/app/DeviceShockWarningSettingService/GetAll' params).then(res => res.data)
export function GetDeviceShockWarning(params) {
  return request({
    url: '/all/api/services/app/DeviceShockWarningSettingService/GetAll',
    method: 'get',
    params: params
  })
}
// 设备温度报警设置
// export const GetDeviceTemperWarning = params => GET('/all/api/services/app/DeviceTemperWarningSettingService/GetList' params).then(res => res.data)
export function GetDeviceTemperWarning(params) {
  return request({
    url: '/all/api/services/app/DeviceTemperWarningSettingService/GetList',
    method: 'get',
    params: params
  })
}
// 添加设备温度报警设置
// export const AddDeviceTemperWarning = params => POST('/all/api/services/app/DeviceTemperWarningSettingService/Create' params).then(res => res.data)
export function AddDeviceTemperWarning(params) {
  return request({
    url: '/all/api/services/app/DeviceTemperWarningSettingService/Create',
    method: 'post',
    params: params
  })
}
// 修改设备温度报警设置
// export const EditDeviceTemperWarning = params => PUT('/all/api/services/app/DeviceTemperWarningSettingService/Update' params).then(res => res.data)
export function EditDeviceTemperWarning(params) {
  return request({
    url: '/all/api/services/app/DeviceTemperWarningSettingService/Update',
    method: 'put',
    params: params
  })
}
// 删除设备温度报警设置
// export const DeleteDeviceTemperWarning = params => DELETE('/all/api/services/app/DeviceTemperWarningSettingService/Delete' params).then(res => res.data)
export function DeleteDeviceTemperWarning(params) {
  return request({
    url: '/all/api/services/app/DeviceTemperWarningSettingService/Delete',
    method: 'delete',
    params: params
  })
}

// 风速风向报警
// export const GetWindSpeedWarning = params => GET('/all/api/services/app/WindSpeedWarningSettingService/GetAll' params).then(res => res.data)
export function GetWindSpeedWarning(params) {
  return request({
    url: '/all/api/services/app/WindSpeedWarningSettingService/GetAll',
    method: 'get',
    params: params
  })
}

// 添加报警策略信息
// export const AddDeviceWarningSetting = params => POST('/all/api/services/app/WarningSettingService/AddDeviceWarningSetting' params).then(res => res.data)
export function AddDeviceWarningSetting(params) {
  return request({
    url: '/all/api/services/app/WarningSettingService/AddDeviceWarningSetting',
    method: 'post',
    params: params
  })
}
// 编辑报警策略信息
// export const EditDeviceWarningSetting = params => PUT('/all/api/services/app/WarningSettingService/EditDeviceWarningSetting' params).then(res => res.data)
export function EditDeviceWarningSetting(params) {
  return request({
    url: '/all/api/services/app/WarningSettingService/EditDeviceWarningSetting',
    method: 'put',
    params: params
  })
}
// 根据id删除报警策略信息
// export const DeleteDeviceWarningSetting = params => DELETE('/all/api/services/app/WarningSettingService/DeleteDeviceWarningSetting' params).then(res => res.data)
export function DeleteDeviceWarningSetting(params) {
  return request({
    url: '/all/api/services/app/WarningSettingService/DeleteDeviceWarningSetting',
    method: 'delete',
    params: params
  })
}

// 保养记录分页列表 
// export const GetRelationDevice = params => GET('/all/api/services/app/RelationDeviceMaintainanceRecordService/GetAll' params).then(res => res.data)
export function GetRelationDevice(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceMaintainanceRecordService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加保养信息
// export const AddRelationDevice = params => POST('/all/api/services/app/RelationDeviceMaintainanceRecordService/Create' params).then(res => res.data)
export function AddRelationDevice(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceMaintainanceRecordService/Create',
    method: 'post',
    params: params
  })
}
// 修改保养信息
// export const EditRelationDevice = params => PUT('/all/api/services/app/RelationDeviceMaintainanceRecordService/Update' params).then(res => res.data)
export function EditRelationDevice(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceMaintainanceRecordService/Update',
    method: 'put',
    params: params
  })
}
// 根据id删除保养信息
// export const DeleteRelationDevice = params => DELETE('/all/api/services/app/RelationDeviceMaintainanceRecordService/Delete' params).then(res => res.data)
export function DeleteRelationDevice(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceMaintainanceRecordService/Delete',
    method: 'delete',
    params: params
  })
}

// 维修记录分页列表 
// export const GetRelationRepairRecord = params => GET('/all/api/services/app/RelationDeviceRepairRecordService/GetAll' params).then(res => res.data)
export function GetRelationRepairRecord(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceRepairRecordService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加维修信息
// export const AddRelationRepairRecord = params => POST('/all/api/services/app/RelationDeviceRepairRecordService/Create' params).then(res => res.data)
export function AddRelationRepairRecord(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceRepairRecordService/Create',
    method: 'post',
    params: params
  })
}
//维修保养信息
// export const EditRelationRepairRecord = params => PUT('/all/api/services/app/RelationDeviceRepairRecordService/Update' params).then(res => res.data)
export function EditRelationRepairRecord(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceRepairRecordService/Update',
    method: 'put',
    params: params
  })
}
// 根据id删除维修信息
// export const DeleteRelationRepairRecord = params => DELETE('/all/api/services/app/RelationDeviceRepairRecordService/Delete' params).then(res => res.data)
export function DeleteRelationRepairRecord(params) {
  return request({
    url: '/all/api/services/app/RelationDeviceRepairRecordService/Delete',
    method: 'delete',
    params: params
  })
}

/**
 * 
 * @param {*}堆取料机 
 * @returns 
 */
// 获取堆取料机下所有的设备
// export const GetAllDevices = params => GET('/all/api/services/app/BarWheelMachineService/GetAllDevices' params).then(res => res.data)
export function GetAllDevices(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/GetAllDevices',
    method: 'get',
    params: params
  })
}
// 堆料机列表
// export const getBarWheelMachine = params => GET('/all/api/services/app/BarWheelMachineService/GetAll' params).then(res => res.data)
export function getBarWheelMachine(params) {
  return request({
    url: 'all/api/services/app/BarWheelMachineService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加斗轮机
// export const AddBarWheelMachine = params => POST('/all/api/services/app/BarWheelMachineService/Create' params).then(res => res.data)
export function AddBarWheelMachine(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/Create',
    method: 'post',
    params: params
  })
}
// 修改斗轮机信息
// export const UpdateBarWheelMachine = params => PUT('/all/api/services/app/BarWheelMachineService/Update' params).then(res => res.data)
export function UpdateBarWheelMachine(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/Update',
    method: 'put',
    params: params
  })
}
// 删除斗轮机
// export const DeleteBarWheelMachine = params => DELETE('/all/api/services/app/BarWheelMachineService/DeleteByCode' params).then(res => res.data)
export function DeleteBarWheelMachine(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/DeleteByCode',
    method: 'delete',
    params: params
  })
}

//堆取料机每天工作时长
// export const GetBarWheelMachineSumList = params => GET('/all/api/services/app/BarWheelMachineWorkStatisticsService/GetAllList' params).then(res => res.data)
export function GetBarWheelMachineSumList(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineWorkStatisticsService/GetAllList',
    method: 'get',
    params: params
  })
}

//堆取料机每天堆取料量 
// export const GetWeightStatisticsList = params => GET('/all/api/services/app/BarWheelMachineWorkStatisticsService/GetWeightStatisticsList' params).then(res => res.data)
export function GetWeightStatisticsList(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineWorkStatisticsService/GetWeightStatisticsList',
    method: 'get',
    params: params
  })
}
// 统计
// export const GetBarWheelMachineWorkAll = params => GET('/all/api/services/app/BarWheelMachineWorkStatisticsTempService/GetAll' params).then(res => res.data)
export function GetBarWheelMachineWorkAll(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineWorkStatisticsTempService/GetAll',
    method: 'get',
    params: params
  })
}

/**
 * 
 * @param {*} 结构报警策略 
 * @returns 
 */

// 获取结构传感器应力报警值
// export const GetStructureStrainWarning = params => GET('/all/api/services/app/StructureStrainWarningSettingService/GetAll' params).then(res => res.data)
export function GetStructureStrainWarning(params) {
  return request({
    url: '/all/api/services/app/StructureStrainWarningSettingService/GetAll',
    method: 'get',
    params: params
  })
}
// 根据对取料机code获取测点信息
// export const FetchLatestStrainGauges = params => GET('/all/api/services/app/StrainGaugeLatestServiceImpl/FetchLatestStrainGauges' params).then(res => res.data)
export function FetchLatestStrainGauges(params) {
  return request({
    url: '/all/api/services/app/StrainGaugeLatestServiceImpl/FetchLatestStrainGauges',
    method: 'get',
    params: params
  })
}

// 修改应力传感器信息
// export const UpdateStructureStrainWarning = params => PUT('/all/api/services/app/StructureStrainWarningSettingService/Update' params).then(res => res.data)
export function UpdateStructureStrainWarning(params) {
  return request({
    url: '/all/api/services/app/StructureStrainWarningSettingService/Update',
    method: 'put',
    params: params
  })
}

// 添加应力传感器
// export const AddStructureStrainWarning = params => POST('/all/api/services/app/StructureStrainWarningSettingService/Create' params).then(res => res.data)
export function AddStructureStrainWarning(params) {
  return request({
    url: '/all/api/services/app/StructureStrainWarningSettingService/Create',
    method: 'post',
    params: params
  })
}
// 应力传感器
// export const DeleteStructureStrainWarning = params => DELETE('/all/api/services/app/StructureStrainWarningSettingService/Delete' params).then(res => res.data)
export function DeleteStructureStrainWarning(params) {
  return request({
    url: '/all/api/services/app/StructureStrainWarningSettingService/Delete',
    method: 'post',
    params: params
  })
}

/**
 * 
 * @param {*} 诊断详情 
 * @returns 
 */

// 获取结构传感器应力报警值
// export const GetSafetyWarning = params => GET('/all/api/services/app/SafetyWarningService/GetAll' params).then(res => res.data)
export function GetSafetyWarning(params) {
  return request({
    url: '/all/api/services/app/SafetyWarningService/GetAll',
    method: 'get',
    params: params
  })
}
// 获取报警处理意见
// export const GetAlarmHandlingSuggestion = params => GET('/all/api/services/app/AlarmHandlingSuggestionService/GetAll' params).then(res => res.data)
export function GetAlarmHandlingSuggestion(params?) {
  return request({
    url: '/all/api/services/app/AlarmHandlingSuggestionService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加报警处理意见
// export const CreateAlarmHandlingSuggestion = params => POST('/all/api/services/app/AlarmHandlingSuggestionService/Create' params).then(res => res.data)
export function CreateAlarmHandlingSuggestion(params) {
  return request({
    url: '/all/api/services/app/AlarmHandlingSuggestionService/Create',
    method: 'post',
    params: params
  })
}
// 修改报警处理意见
// export const UpdateAlarmHandlingSuggestion = params => PUT('/all/api/services/app/AlarmHandlingSuggestionService/Update' params).then(res => res.data)
export function UpdateAlarmHandlingSuggestion(params) {
  return request({
    url: '/all/api/services/app/AlarmHandlingSuggestionService/Update',
    method: 'put',
    params: params
  })
}
// 删除报警处理意见
// export const DeleteAlarmHandlingSuggestion = params => POST('/all/api/services/app/AlarmHandlingSuggestionService/Delelte' params).then(res => res.data)
export function DeleteAlarmHandlingSuggestion(params) {
  return request({
    url: '/all/api/services/app/AlarmHandlingSuggestionService/Delelte',
    method: 'post',
    params: params
  })
}
// 确认报警信息
// export const UpdateAskWarrning = params => PUT('/all/api/services/app/SafetyWarningService/AskWarrning' params).then(res => res.data)
export function UpdateAskWarrning(params) {
  return request({
    url: '/all/api/services/app/SafetyWarningService/AskWarrning',
    method: 'put',
    params: params
  })
}
// 报警次数最多
// export const GetMostAlarms = params => GET('/all/api/services/app/MostAlarmsDeviceService/GetAll' params).then(res => res.data)
export function GetMostAlarms(params) {
  return request({
    url: '/all/api/services/app/MostAlarmsDeviceService/GetAll',
    method: 'get',
    params: params
  })
}

/***
 * 结构传感器
 */

// 获取结构传感器列表
// export const GetStructure = params => GET('/all/api/services/app/StructureSensorService/GetAll' params).then(res => res.data)
export function GetStructure(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/GetAll',
    method: 'get',
    params: params
  })
}
//  添加结构传感器
// export const AddStructure = params => POST('/all/api/services/app/StructureSensorService/Create' params).then(res => res.data)
export function AddStructure(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/Create',
    method: 'post',
    params: params
  })
}
// 修改结构传感器
// export const EditStructure = params => PUT('/all/api/services/app/StructureSensorService/Update' params).then(res => res.data)
export function EditStructure(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/Update',
    method: 'put',
    params: params
  })
}
// 删除结构传感器
// export const DeleteStructure = params => DELETE('/all/api/services/app/StructureSensorService/Delete' params).then(res => res.data)
export function DeleteStructure(params) {
  return request({
    url: '/all/api/services/app/StructureSensorService/Delete',
    method: 'delete',
    params: params
  })
}

/**
 * 
 * @param {手持传感器测点} params 
 * @returns 
 */
// 获取手持传感器测点列表
// export const GetMeasurePointList = params => GET('/all/api/services/app/HandHeldMeasurePointService/GetPagerList' params).then(res => res.data)
export function GetMeasurePointList(params) {
  return request({
    url: '/all/api/services/app/HandHeldMeasurePointService/GetPagerList',
    method: 'get',
    params: params
  })
}
//  添加手持传感器测点
// export const AddMeasurePoint = params => POST('/all/api/services/app/HandHeldMeasurePointService/Create' params).then(res => res.data)
export function AddMeasurePoint(params) {
  return request({
    url: '/all/api/services/app/HandHeldMeasurePointService/Create',
    method: 'post',
    params: params
  })
}
// 修改手持传感器测点
// export const EditMeasurePoint = params => PUT('/all/api/services/app/HandHeldMeasurePointService/Update' params).then(res => res.data)
export function EditMeasurePoint(params) {
  return request({
    url: '/all/api/services/app/HandHeldMeasurePointService/Update',
    method: 'put',
    params: params
  })
}
// 删除手持传感器测点
// export const DeleteMeasurePoint = params => DELETE('/all/api/services/app/HandHeldMeasurePointService/Delete' params).then(res => res.data)
export function DeleteMeasurePoint(params) {
  return request({
    url: '/all/api/services/app/HandHeldMeasurePointService/Delete',
    method: 'delete',
    params: params
  })
}

/**
 * 
 * @param {手持传感器设备} params 
 * @returns 
 */
// 获取手持传感器列表
// export const GetEquipmentList = params => GET('/all/api/services/app/HandheldInspectionEquipmentService/GetPagerList' params).then(res => res.data)
export function GetEquipmentList(params) {
  return request({
    url: '/all/api/services/app/HandheldInspectionEquipmentService/GetPagerList',
    method: 'get',
    params: params
  })
}
//  添加手持传感器测点
// export const AddEquipment = params => POST('/all/api/services/app/HandheldInspectionEquipmentService/Create' params).then(res => res.data)
export function AddEquipment(params) {
  return request({
    url: '/all/api/services/app/HandheldInspectionEquipmentService/Create',
    method: 'post',
    params: params
  })
}
// 修改手持传感器测点
// export const EditEquipment = params => PUT('/all/api/services/app/HandheldInspectionEquipmentService/Update' params).then(res => res.data)
export function EditEquipment(params) {
  return request({
    url: '/all/api/services/app/HandheldInspectionEquipmentService/Update',
    method: 'put',
    params: params
  })
}
// 删除手持传感器测点
// export const DeleteEquipment = params => DELETE('/all/api/services/app/HandheldInspectionEquipmentService/Delete' params).then(res => res.data)
export function DeleteEquipment(params) {
  return request({
    url: '/all/api/services/app/HandheldInspectionEquipmentService/Delete',
    method: 'delete',
    params: params
  })
}

// 查询最新手持传感器测点数据信息
// export const GetHandHeldRecordList = params => GET('/all/api/services/app/HandHeldRecordService/GetAllList' params).then(res => res.data)
export function GetHandHeldRecordList(params) {
  return request({
    url: '/all/api/services/app/HandHeldRecordService/GetAllList',
    method: 'get',
    params: params
  })
}

